All Questions
10 questions
4votes
1answer
527views
Single-player obstacle-avoidance space game
I was wondering what I could do to improve the gameplay of this game, as well as the graphics. I would like to use LWJGL, but the rendering library isn't important. I just need to find out ...
4votes
3answers
2kviews
Simulating a closed particle system in Java
I have this program that simulates a closed particle system. Closed in this context means that the sum of all energies is constant. My primary concern is code itself, yet I would like to hear comments ...
2votes
2answers
11kviews
Java Drawing House
Can anybody tell me if there is a better way code this? As an exercise I was supposed to draw a simple house, and this is the main body of the code I have only I feel it could be way better but can't ...
8votes
2answers
3kviews
Graphics in Conway's Game of Life in Java
I recently coded a program to stimulate Conway's Game of Life. Originally, my program just printed an array of 1's and 0's where the 1's represented the "live" cells, but I tried to teach myself some ...
7votes
1answer
797views
Paint rectangles to canvas using mouse
Just wanted to post this here to see if anyone has any critiques of my code, if I'm drawing the background image most efficiently, or if I'm doing anything which could benefit from obvious ...
7votes
2answers
1kviews
JPaint (Java painting app)
I have this painting app called JPaint in Java and I'm wondering if it could be improved. The variable declaration seems repetitive and long, and I think it might ...
4votes
1answer
1kviews
Drawing the appropriate shapes onto JFrames
To write a Java class that reads through a text file of drawing commands and draws the appropriate shapes onto JFrames, I have input instructions as follows: ...
0votes
1answer
857views
Extending ProgressBarUI for modifying the look of a JProgressBar in Java
I have this visual mod for a javax.swing.JProgressBar: ...
15votes
1answer
255views
Creation of Queen Ann's Lace fractal
I've created a program which recreates the Queen Ann's Lace fractal. However, when the amount of points that are being plotted increases, the points are plotted way slower. Is there any way to make it ...
8votes
1answer
5kviews
Drawing a triangle and some concentric circles
For class, I had to use Java to draw a triangle and some concentric circles: ...